package b2.widget.login
{
	import b2.config.*;
	import b2.widget.tab.Tab;

	public class LoginTab extends Tab
	{
		public function LoginTab(loginDays:int)
		{
			super((loginDays + 1).toString(), 3, 1);
			var lgConfig:LoginGiftConfig = Config.loginGiftConfigs[loginDays];
			for (var i:int = 0; i < lgConfig.objects.length; i++)
			{
				var object:Array = lgConfig.objects[i];
				var giftItem:GiftItem = new GiftItem(object);
				addItem(giftItem, giftItem.width, giftItem.height);
			}
		}
		
	}
}